import java.util.function.Consumer;

public class Demo09Consumer {
    private static void consumeString(Consumer<String> function , String str) {
        function.accept(str);
    }

    public static void main(String[] args) {
        consumeString(s -> System.out.println(s),"123");

    }


}
